package com.zryc.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品库存表
 * </p>
 *
 * @author xujiajun
 * @since 2022-10-17
 */
@TableName("warehouse_product")
@ApiModel(value = "WarehouseProduct对象", description = "商品库存表")
public class WarehouseProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品库存ID")
    @TableId(value = "wp_id", type = IdType.AUTO)
    private Integer wpId;

    @ApiModelProperty("商品ID")
    private Integer productId;

    @ApiModelProperty("仓库ID")
    private Short wId;

    @ApiModelProperty("货架编号")
    private String shelfNo;

    @ApiModelProperty("当前商品数量")
    private Integer currentCnt;

    @ApiModelProperty("当前占用数据")
    private Integer lockCnt;

    @ApiModelProperty("在途数据")
    private Integer inTransitCnt;

    @ApiModelProperty("移动加权成本")
    private BigDecimal averageCost;

    public Integer getWpId() {
        return wpId;
    }

    public void setWpId(Integer wpId) {
        this.wpId = wpId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Short getwId() {
        return wId;
    }

    public void setwId(Short wId) {
        this.wId = wId;
    }

    public String getShelfNo() {
        return shelfNo;
    }

    public void setShelfNo(String shelfNo) {
        this.shelfNo = shelfNo;
    }

    public Integer getCurrentCnt() {
        return currentCnt;
    }

    public void setCurrentCnt(Integer currentCnt) {
        this.currentCnt = currentCnt;
    }

    public Integer getLockCnt() {
        return lockCnt;
    }

    public void setLockCnt(Integer lockCnt) {
        this.lockCnt = lockCnt;
    }

    public Integer getInTransitCnt() {
        return inTransitCnt;
    }

    public void setInTransitCnt(Integer inTransitCnt) {
        this.inTransitCnt = inTransitCnt;
    }

    public BigDecimal getAverageCost() {
        return averageCost;
    }

    public void setAverageCost(BigDecimal averageCost) {
        this.averageCost = averageCost;
    }

    @Override
    public String toString() {
        return "WarehouseProduct{" +
            "wpId = " + wpId +
            ", productId = " + productId +
            ", wId = " + wId +
            ", shelfNo = " + shelfNo +
            ", currentCnt = " + currentCnt +
            ", lockCnt = " + lockCnt +
            ", inTransitCnt = " + inTransitCnt +
            ", averageCost = " + averageCost +
        "}";
    }
}
